package com.asset.dispoal.defaultRoleDepartment.service.converter;

import com.asset.dispoal.defaultRoleDepartment.domain.db.entity.GbDefaultRoleDepartment;
import com.asset.dispoal.defaultRoleDepartment.dto.GbDefaultRoleDepartmentRequest;
import com.asset.dispoal.defaultRoleDepartment.dto.GbDefaultRoleDepartmentResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/21$
 */
@Mapper
public interface GbDefaultRoleDepartmentConverter {


    GbDefaultRoleDepartmentConverter INSTANCE = Mappers.getMapper(GbDefaultRoleDepartmentConverter.class);

    GbDefaultRoleDepartment reqToDo(GbDefaultRoleDepartmentRequest request);

    List<GbDefaultRoleDepartmentResponse> dosToRes(List<GbDefaultRoleDepartment> departmentList);

    GbDefaultRoleDepartmentResponse doToRes(GbDefaultRoleDepartment departmentList);

}
